﻿@model List<OnlineEducation.Areas.Student.Models.UserEditModel>

@foreach (var item in Model.OrderBy(n => n.Id))
{
    <tr>
        @if (item.HasError)
        {
            <td><i title="@Html.Raw(item.ErrorMessage)" class="dripicons-warning" style="color:red"></i></td>
        }
        else
        {
            <td>  </td>
        }
        <td>@item.UserName </td>
        <th>@item.FullName</th>
        <th>@item.PhoneNumber</th>
        <th>@(item.Gender.HasValue?(item.Gender.Value==1?"男":"女"):"")</th>
        <th>@(item.BirthDate.HasValue? item.BirthDate.Value.ToString("yyyy-MM-dd"):"")</th>
        <th>@item.Email</th>
        <th>@item.Address</th>
        <th>@item.Remark</th>
        <th>
            <div class='btn-group dropdown'>

                <a href='javascript: void(0);' class='table-action-btn dropdown-toggle arrow-none btn btn-outline-secondary waves-effect btn-sm' data-toggle='dropdown' aria-expanded='false'><i class='ti-menu'></i></a>

                <div class='dropdown-menu dropdown-menu-left' style="z-index:9999">

                    <a class='dropdown-item' href='#' onclick='ShowPopup("/Student/EditUploadTemp/@item.Id")'><i class='mdi mdi-pencil mr-2 text-muted font-18 vertical-middle'></i>修改</a>

                    <a class='dropdown-item' href='#' onclick='Remove("@item.Id")'><i class='mdi mdi-delete-forever mr-2 text-muted font-18 vertical-middle'></i>删除</a>
                </div>
            </div>
        </th>
    </tr>
}
